<script lang="ts" setup>

</script>

<template>
    <div class="auth-layout">
        <div class="auth-container">
            <div class="brand-section">
                <div class="brand-header">
                    <h1>预约收银商户中心</h1>
                </div>

                <div class="brand-content">
                    <h2>高效管理<br>轻松收银</h2>
                    <p>登录预约收银商户中心，体验智能化预约管理与高效收银系统，让您的生意经营更简单、更高效。</p>

                    <ul class="features-list">
                        <li>
                            <div class="feature-icon">✓</div>
                            <span>智能预约管理，减少人工失误</span>
                        </li>
                        <li>
                            <div class="feature-icon">✓</div>
                            <span>多种支付方式，快速完成收银</span>
                        </li>
                        <li>
                            <div class="feature-icon">✓</div>
                            <span>实时数据报表，掌握经营状况</span>
                        </li>
                    </ul>
                </div>

                <div class="brand-footer">
                    <p>需要帮助？</p>
                    <div class="contact-links">
                        <a href="tel:400-000-0000">📞 400-000-0000</a>
                        <a href="mailto:support@example.com">✉️ support@example.com</a>
                    </div>
                </div>
            </div>
            <div class="login-section">
                <slot />
            </div>
        </div>
    </div>

</template>

<style lang="scss" scoped>
.auth-layout{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #F7F8FA;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-container {
    width: 100%;
    max-width: 1120px;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1);
    background: white;
    min-height: 700px;
}

.brand-section {
    flex: 1;
    background: linear-gradient(135deg, #165DFF 0%, #722ED1 100%);
    color: white;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.brand-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.brand-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.brand-content {
    position: relative;
    z-index: 1;
    margin-top: 40px;
}

.brand-content h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.brand-content p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    margin-top: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.brand-footer {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-footer p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.contact-links {
    display: flex;
    gap: 20px;
}

.contact-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.contact-links a:hover {
    opacity: 1;
}

.login-section {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
</style>
